package com.ptl.bp.config;

import com.ptl.bp.config.enums.Logical;
import com.ptl.bp.config.enums.UserRole;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
public @interface PermissionRequire {
    UserRole value();

    Logical logical() default Logical.AND;
}
